/*****************************************************************************
 * display.h
 *
 * Copyright (C) 2020 Jeasonvor 1101627719@qq.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 ****************************************************************************/
#ifndef __DISPLAY_H__
#define __DISPLAY_H__

/*****************************************************************************
 * Included Files
 ****************************************************************************/

/*****************************************************************************
 * Pre-processor Definitions
 ****************************************************************************/

/*****************************************************************************
 * Public Types
 ****************************************************************************/

typedef struct {
    plum_u32 x;
    plum_u32 y;
} plum_display_pos_t;

/*****************************************************************************
 * Public Data
 ****************************************************************************/

/****************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************************
 * Public Function Prototypes
 ****************************************************************************/

/**
 * @brief:  显示初始化
 *
 * @param:
 *
 * @return: 返回执行状态
 * **/
plum_s32 plum_display_init(plum_void);

/**
 * @brief:  显示字符串
 *
 * @param[in]:  pos     -   字符串起始位置
 * @param[in]:  fsz     -   字号
 * @param[in]:  str     -   字符串指针
 *
 * @return:
 * **/
plum_void plum_display_string(plum_display_pos_t pos, plum_u32 fsz,
                              plum_s8 *str);

/**
 * @brief:  显示数字
 *
 * @param[in]:  pos     -   字符串起始位置
 * @param[in]:  fsz     -   字号
 * @param[in]:  number  -   数字值
 *
 * @return:
 * **/
plum_void plum_display_number(plum_display_pos_t pos, plum_u32 fsz,
                              plum_u32 number);

/**
 * @brief： 清屏
 *
 * @param:
 *
 * @return：
 */
plum_void plum_display_clear(plum_void);

/****************************************************************************/
#ifdef __cplusplus
}
#endif
/****************************************************************************/
#endif /* __DISPLAY_H__ */
/****************************************************************************/
/*                                                                          */
/*  End of file.                                                            */
/*                                                                          */
/****************************************************************************/
